<?php

namespace App\Http\Controllers\Labaicai;

use App\Http\Controllers\Controller;
use Carbon\Carbon;

class CarbonController extends Controller
{
    public function index()
    {
        $duetime = Carbon::createFromFormat('Y年m月d', '2023年12月31');
        $etime = clone $duetime;
        $ttime = clone $duetime;
        echo $oneTime = $duetime->subDay(30)->format('Y-m-d');
        echo $twoTime = $etime->subDay(60)->format('Y-m-d');
        echo $threeTime = $ttime->subDay(90)->format('Y-m-d');

    }
}
